<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>便捷的操作</title>
    <style>
        p{
            color:red;
            margin: 5px;
            cursor:pointer;/*设定鼠标的形状为一只伸出食指的手,*/
        }
        p:hover{
            background-color: yellow;
        }
      
    </style>
</head>
<body>
    <p>1111</p>
    <p>2222</p>
    <p>3333</p>
</body>
<script src="jquery.js"></script>
<script>
    $("p").click(function(){
       $(this).slideUp();//点击收起
    })
</script>
</html>